public class IntNode implements BinNode {
    private BinNode left;
    private BinNode right;
    private Character operate;
    private boolean B = false;

    public IntNode(Character op, BinNode l,BinNode r){
        operate = op;
        left = l;
        right = r;
    }
    public Object element(){
        return operate;
    }
    public Object setElement(Object v){
        return operate = (Character)v;
    }
    public BinNode left(){
        return left;
    }
    public BinNode setLeft(BinNode p){
        return left = p;
    }
    public BinNode right(){
        return right;
    }
    public BinNode setRight(BinNode p){
        return right = p;
    }
    public boolean isLeaf(){
        return B;
    }

}
